//
//  C_SongButtonUICollectionViewCell.m
//  音悦咖
//
//  Created by Best on 15/7/18.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "C_SongButtonUICollectionViewCell.h"
#import "BaseHeader.h"
@implementation C_SongButtonUICollectionViewCell

- (void)dealloc
{
    [_buttonLabel release];
    [super dealloc];
}


- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self create];
    }
    
    return self;
}


- (void)create
{
    self.clipsToBounds = YES;
    self.buttonLabel = [[UILabel alloc] init];
    [self addSubview:self.buttonLabel];
   // self.buttonLabel.textColor = [UIColor whiteColor];
    [_buttonLabel release];
    UIView *view = [[UIView alloc] init];
    view.alpha = 0.01;
    self.selectedBackgroundView = view;
    self.selectedBackgroundView.backgroundColor = [UIColor whiteColor];
    self.buttonLabel.textColor = self.selectedBackgroundView.backgroundColor;
    //self.selectedBackgroundView.alpha = 0.01;
    [view release];
    
}


- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    self.buttonLabel.frame = layoutAttributes.bounds;
}


@end
